package com.six.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.util.Date;

@Data
@TableName("buy_agreement")
public class BuyAgreement {

    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    //合同编号
    private String code;

    //供应商id
    private Long supplierId;

    //制单人,默认为当前登录的用户
    private String peopleName;

    //发货日期
    private Date putDate;

    //制单日期
    private Date date;

    //制单部门
    private String deptName;

    //审批人
    private String checkName;

    //状态 审核中0,审核通过1,待付款2,已下单3,部分到货4,全部到货5
    private Integer status=0;

    //备注
    private String remarks;

    //供应商收款期限
    private Date payDate;

}
